home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Precision Software Appli…tions Silver Collection 4
/
Precision Software Applications Silver Collection Volume 4 (1993).iso
/
database
/
profile.exe
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-02-08
|
2KB
|
86 lines
ECHO OFF
IF %1==DOC GOTO DOCINSTALL
CLS
ECHO ProFile Professional Filing System Version 2
ECHO Hard Disk Installation Batch File
echo ---
ECHO This program will create a subdirectory called PROFILE on
ECHO your hard disk and copy all files to it.
echo ---
ECHO PLEASE ENTER THE LETTER OF YOUR HARD DISK DRIVE
ECHO OR PRESS [ENTER] TO EXIT
ECHO CHOICES C D E F G H
KEYPRESS C D E F G H
IF ERRORLEVEL=6 GOTO H
IF ERRORLEVEL=5 GOTO G
IF ERRORLEVEL=4 GOTO F
IF ERRORLEVEL=3 GOTO E
IF ERRORLEVEL=2 GOTO D
IF ERRORLEVEL=1 GOTO C
GOTO STOP
:H
SET DISK=H:
GOTO CONT
:F
SET DISK=F:
GOTO CONT
:E
SET DISK=E:
GOTO CONT
:D
SET DISK=D:
GOTO CONT
:C
SET DISK=C:
:CONT
ECHO .
ECHO HARD DISK IS %DISK%
ECHO .
ECHO IF IT'S NOT, OR YOU'RE NOT READY, PRESS CONTROL-C. OTHERWISE,
ECHO ON
Pause
%DISK%
CD\
MD PROFILE
CD\PROFILE
REN PF.COM PF13.COM
REN PF.HLP PF13.HLP
COPY A:*.*
REM
REM DATABASE AND DOCUMENTATION FILES COPIED
ECHO OFF
INSTALL DOC NOUNPACK
:DOCINSTALL
CLS
ECHO The PROGRAM files will now be copied to the hard disk.
ECHO ---
ECHO .
ECHO REMOVE THE DOCUMENTATION DISK FROM DRIVE A: AND INSERT
ECHO THE PROGRAM DISK NOW
ECHO .
ECHO IF YOU'RE NOT READY, PRESS CONTROL-C. OTHERWISE,
PAUSE
ECHO ON
COPY A:*.*
COPY PFBATCH.TXT %DISK%\PF.BAT
DEL PFBATCH.TXT
ECHO OFF
REM
REM PROGRAM FILES COPIED
IF %2==NOUNPACK GOTO THEND
ECHO .
ECHO THE EXAMPLE DATABASES WILL NOW BE UNPACKED.
ECHO .
ECHO IF YOU'RE NOT READY, PRESS CONTROL-C. OTHERWISE,
PAUSE
ECHO ON
ARC-E EXAMPLE
:THEND
echo off
echo END OF INSTALLATION PROGRAM
echo TYPE PF AND [ENTER] TO USE PROFILE!
echo on
:STOP
ECHO ON